<template>
	<view class="">
		<text>API-Navica 跳转</text>
		<view class="">------</view>
		<view class="" @click="apinav">
			navigateTo：点击跳转到demos11info
		</view>
		<view class="">------</view>
		<view class="" @click="apire">
			reLaunch：点击关闭其他页面跳转到index
		</view>
		<view class="">------</view>
		<view class="" @click="apigo">
			navigateBack：点击返回上一个页面
		</view>
	</view>
</template>

<script setup>
	function apinav(){
		uni.navigateTo({
			url:"/pages/demos11info/demos11info?name=小明"
		})
	}
	function apire(){
		uni.reLaunch({
			url:"/pages/index/index"
		})
	}
	function apigo(){
		uni.navigateBack()
	}
	console.log(getCurrentPages())
</script>

<style lang="scss" scoped>

</style>
